{% extends 'base_dashboard.html' %} {% load site_tags %} {% block title %}Review Enrollments — Online LMS{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Review Enrollments

Approve or reject student payment submissions

{% if pending_count > 0 %} {{ pending_count }} Pending {% endif %}
{% include 'includes/messages.html' %}
{{ total_count }}
Total
{{ pending_count }}
Pending
{{ approved_count }}
Approved
{{ rejected_count }}
Rejected
{% if status_filter %} {% endif %}
{{ enrollments|length }} record{{ enrollments|length|pluralize }}
{% for enrollment in enrollments %}
{% if enrollment.student.profile_picture %} {% else %}
{% endif %}
{{ enrollment.student.get_display_name }}
@{{ enrollment.student.username }}
{{ enrollment.course.title|truncatechars:45 }}
{% if enrollment.status == 'approved' %} Approved {% elif enrollment.status == 'pending' %} Pending {% else %} Rejected {% endif %} {{ enrollment.requested_at|date:"M d, Y" }}
Full Name {{ enrollment.student.full_name|default:"—" }}
Email {{ enrollment.student.email|default:"—" }}
Phone {{ enrollment.student.phone_number|default:"—" }}
CNIC {% if enrollment.student.cnic %}{{ enrollment.student.cnic|slice:":5" }}-{{ enrollment.student.cnic|slice:"5:12" }}-{{ enrollment.student.cnic|slice:"12:" }}{% else %}—{% endif %}
Age {% if enrollment.student.age %}{{ enrollment.student.age }} years{% else %}—{% endif %}
Qualification {{ enrollment.student.qualification|default:"—" }}
Last Degree {{ enrollment.student.last_degree|default:"—" }}
Work Experience {{ enrollment.student.work_experience|default:"—"|truncatechars:80 }}
Reference Name {{ enrollment.student.reference_name|default:"—" }}
Reference Mobile {{ enrollment.student.reference_mobile|default:"—" }}
Bio
{{ enrollment.student.bio|default:"—" }}
{{ enrollment.course.title }}
{% if enrollment.course.price == 0 %}Free{% else %}{% format_price enrollment.course.price %}{% endif %}
{% if enrollment.payment_note %}
Note: {{ enrollment.payment_note }}
{% endif %}
{% if enrollment.payment_method == 'stripe' %} Stripe {% elif enrollment.payment_method == 'manual' %} Manual {% elif enrollment.payment_method == 'free' %} Free {% else %} Not selected {% endif %}
{% if enrollment.payment_proof %} View Payment Proof {% elif enrollment.payment_method == 'stripe' %}
Paid via Stripe Checkout
{% else %}
Not uploaded
{% endif %} {% if enrollment.status == 'pending' and enrollment.payment_method != 'stripe' %}
{% csrf_token %}
{% else %}
Reviewed By
{% if enrollment.approved_by %}{{ enrollment.approved_by.get_display_name }}{% else %}—{% endif %}
{% if enrollment.approved_at %}
{{ enrollment.approved_at|date:"M d, Y, g:i a" }}
{% endif %}
{% if enrollment.status == 'rejected' and enrollment.rejection_reason %}
Rejection Reason
{{ enrollment.rejection_reason }}
{% endif %} {% endif %}
{% empty %}

No enrollments found for this filter.

{% endfor %} {% endblock %}